import React, { Component } from 'react'
import Header from '../../components/Header/Header'
import { Image,List } from 'antd-mobile'
import './Mine.less'
export default class Mine extends Component {
    render() {
        let obj =sessionStorage.getItem("isLogin");
        let objp = JSON.parse(obj);
        
        return (
            <div>
                <Header title={"我的"} back></Header>
                <List>
                    <List.Item
                        prefix={
                            <Image
                            src={""}
                            style={{ borderRadius: 20 }}
                            fit='cover'
                            width={40}
                            height={40}
                            />
                        }
                        description={"个人"}
                        >
                        {objp.nickname}
                    </List.Item>
                </List>
                <List mode='card'>
                    <List.Item onClick={()=>this.props.history.push("/Coupon")}>
                        优惠券
                    </List.Item>
                    
                </List>
            </div>
        )
    }
}
